/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

import javax.faces.bean.ManagedBean;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author lnngu_000
 */
@ManagedBean
public class FavoriteBean {
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("OnlineCateringPU");
    private int favoriteId;
    private int customerId;
    private int catererId;
    private float rate;

    public int getFavoriteId() {
        return favoriteId;
    }

    public void setFavoriteId(int favoriteId) {
        this.favoriteId = favoriteId;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public int getCatererId() {
        return catererId;
    }

    public void setCatererId(int catererId) {
        this.catererId = catererId;
    }

    public float getRate() {
        return rate;
    }

    public void setRate(float rate) {
        this.rate = rate;
    }
    public String add(){
        try {
            
        } catch (Exception e) {
        }
        return "fail";
    }
}
